<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录界面</title>
    <link rel="stylesheet" href="${base}/static/layui/css/layui.css">
    <script src="${base}/static/layui/layui.js"></script>
    <!--    <link rel="stylesheet" href="https://www.layuicdn.com/layui/css/layui.css">-->
    <link rel="stylesheet" href="${base}/static/css/global.css">
</head>
<body>
<div class="bg-login">

    <form class="layui-form" action="subLogin" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="username" required lay-verify="required" placeholder="请输入用户"
                       class="layui-input"
                       value="hanchen">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-inline">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
                       class="layui-input"
                       value="123456">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">记住我</label>
            <div class="layui-input-block">
                <input type="checkbox" name="rememberMe" lay-skin="switch">
            </div>
        </div>

        <div class="layui-input-block">
            <button type="submit" class="layui-btn">登录</button>
            <button type="button" class="layui-btn">注册</button>
        </div>


    </form>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form;

        //各种基于事件的操作，下面会有进一步介绍
    });

</script>
</body>
</html>
